package design.decorator;

public abstract  class Decorator implements UserService{
    //装饰器装饰的目标服务
    private UserService userService;

    public Decorator(UserService userService){
        this.userService = userService;
    }

    @Override
    public void updateUserInfo(Long userId) {
        userService.updateUserInfo(userId);
    }

}
